package com.lonely.inventory.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.inventory.domain.dto.surplus.flowwater.SurplusInventoryFlowWaterPageQueryDto;
import com.lonely.inventory.domain.entity.SysSurplusInventory;
import com.lonely.inventory.domain.entity.SysSurplusInventoryFlowWater;
import com.lonely.inventory.domain.entity.SysSurplusInventorySizeInfo;
import com.lonely.inventory.domain.vo.surplus.flowwater.SurplusInventoryFlowWaterPageQueryVo;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/9/23 15:32
 * @description: 尾货库存流水服务
 */
public interface ISurplusInventoryFlowWaterService extends IService<SysSurplusInventoryFlowWater> {

    /**
     * 分页查询
     *
     * @param queryDto
     * @return
     */
    Page<SurplusInventoryFlowWaterPageQueryVo> page(SurplusInventoryFlowWaterPageQueryDto queryDto);

    /**
     * 添加流水
     *
     * @param sysSurplusInventory
     * @param newSurplusInventorySizeInfos
     */
    void addFlowWater(SysSurplusInventory sysSurplusInventory,
                      List<SysSurplusInventorySizeInfo> oldSurplusInventorySizeInfos,
                      List<SysSurplusInventorySizeInfo> newSurplusInventorySizeInfos);
}
